#!/bin/bash
grep falcon-agent /etc/rc.local
if [ $? -eq 0 ]
then
  echo "falcon-agent exist,and now deleting it"
  sed -i '/^\/apps/d' /etc/rc.local
  killall -9 falcon-agent
else
  echo "falcon-agent is not exist"
fi
